package com.carb.service;

import com.carb.dto.AnnouncementAddDTO;
import com.carb.dto.AnnouncementUpdateDTO;
import com.carb.entity.Announcement;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 公告管理 服务类
 * </p>
 *
 * @author XuChaoyang
 * @since 2025-01-18
 */
public interface IAnnouncementService extends IService<Announcement> {

    void addAnnouncement(AnnouncementAddDTO announcementAddDTO);

    List<Announcement> listAll();

    Announcement getAnnouncementById(Long id);

    void updateAnnouncement(AnnouncementUpdateDTO announcementUpdateDTO);

    void deleteAnnouncement(Long id);
}
